﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="corpselfrouteedit.aspx.cs" Inherits="LTJ.WebPage.UserManage.route.corpselfrouteedit" %>
<%@ Register TagPrefix="dyj" Namespace="LTJ.Control" Assembly="LTJ.Control" %>
<%@ Register TagPrefix="dyjU" TagName="ajaxloadportlist" Src="~/datacontrol/ajaxloadportlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxtranportlist" Src="~/datacontrol/ajaxtranportlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxroutesealist" Src="~/datacontrol/ajaxselfroutelinelist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxroutecarrierlist" Src="~/datacontrol/ajaxselfcarrierlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxportlist" Src="~/datacontrol/ajaxcorpportlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxdocklist" Src="~/datacontrol/ajaxdocklist.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>内部企业线路设置</title>
    <link href="../css/comm.css" type="text/css" rel="stylesheet" />
    <link href="../css/calendar.css" type="text/css" rel="stylesheet" />
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery-exchange.js" type="text/javascript"></script>
    <script src="../js/prototype.js" type="text/javascript"></script>
    <script src="../js/ajaxhelper.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/common.js"></script>
    <script src="../js/jquery-choose.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="adnr" id="tab">
	    <ul class="tabinf" id="tabt">
		    <li>基本信息</li>
		    <li>海运净价</li>
		    <li>美金费用</li>
		    <li>人民币费用</li>
		    <li>备注</li>
	    </ul>
	    <div class="tabinfnr" id="tabnr">
		    <div class="con">
			    <table border="0" cellpadding="0" cellspacing="0" class="edtb">
				    <tbody>
					    <tr>
						    <td width="15%"><p class="zi1">启运港：</p></td>
						    <td width="35%">
						    <div class="zi2 popxg" style="z-index:150">
							    <p class="ip1" style="width:100px" id="ajaxloadportdatalist_str"><%=rbinfo.loadname%></p>
                                <input type="hidden" id="ajaxloadportdatalist_value" name="ajaxloadportdatalist_value" value="<%=rbinfo.loadport%>"/>
							    <span class="an"></span>
							    <div class="cn" style="width:280px;" id="ajaxloadportdatalist_div">
                                    <dyjU:ajaxloadportlist runat="server" ID="acorploadportlist" />
							    </div>
						    </div>
						    </td>
						    <td width="15%"><p class="zi1">中转港：</p></td>
						    <td width="35%">
						    <div class="zi2 popxg" style="z-index:149">
							    <p class="ip1" style="width:100px" id="ajaxtranportdatalist_str"><%=rbinfo.tranename == "" ? "直航" : rbinfo.tranename%></p>
                                <input type="hidden" id="ajaxtranportdatalist_value" name="ajaxtranportdatalist_value" value="<%=rbinfo.tranport%>" />
							    <span class="an"></span>
							    <div class="cn" style="width:210px;" id="ajaxtranportdatalist_div" >
								    <dyjU:ajaxtranportlist runat="server" ID="acorptranportlist" />
							    </div>
						    </div>
						    </td>
					    </tr>
                        <tr>
						    <td><p class="zi1">船公司：</p></td>
						    <td>
						    <div class="zi2 popxg" style="z-index:148">
							    <p class="ip1" id="ajaxroutecarrierdatalist_str" style="width:100px"><%=rbinfo.bname%></p>
                                <input type="hidden" id="ajaxroutecarrierdatalist_value" name="ajaxroutecarrierdatalist_value" value="<%=rbinfo.bcode%>"/>
					            <span class="an"></span>
					            <div class="cn" style="width:240px;" id="ajaxroutecarrierdatalist_div">
                                    <dyjU:ajaxroutecarrierlist runat="server" ID="aroutecarrlist" />
					            </div>
						    </div>
						    </td>
						    <td><p class="zi1">航线：</p></td>
						    <td>
						    <div class="zi2 popxg" style="z-index:148">
							    <p class="ip1" id="ajaxcorproutedatalist_str" style="width:100px"><%=rbinfo.seaname%></p>
                                <input type="hidden" id="ajaxcorproutedatalist_value" name="ajaxcorproutedatalist_value" value="<%=rbinfo.seacode%>"/>
					            <span class="an"></span>
					            <div class="cn" style="width:210px;" id="ajaxcorproutedatalist_div">
                                    <dyjU:ajaxroutesealist runat="server" ID="aroutesealist" />
					            </div>
						    </div>
						    </td>
					    </tr>
                        <tr>
						    <td><p class="zi1">目的港：</p></td>
						    <td colspan="3">
                            <div class="zi2 popxg" style="z-index:147">
							    <p class="ip1" id="ajaxcorpportdatalist_str" style="width:100px"><%=rbinfo.destname%></p>
                                <input type="hidden" id="ajaxcorpportdatalist_value" name="ajaxcorpportdatalist_value" value="<%=rbinfo.destport%>"/>
					            <span class="an"></span>                                
					            <div class="cn" style="width:280px;" id="ajaxcorpportdatalist_div">
                                    <dyjU:ajaxportlist runat="server" ID="aportlist" />
					            </div>
						    </div>
                            </td>
					    </tr>
                        <tr>
						    <td><p class="zi1">码头：</p></td>
						    <td>
						    <div class="zi2 popxg" style="z-index:146">
							    <p class="ip1" style="width:100px" id="ajaxdockdatalist_str"><%=rbinfo.pier%></p>
                                <input type="hidden" id="ajaxdockdatalist_value" name="ajaxdockdatalist_value" value="<%=rbinfo.pier%>" />
							    <span class="an"></span>
							    <div class="cn" style="width:280px;" id="ajaxdockdatalist_div">
                                    <div id="ajaxdockdatalist">
								    <dyjU:ajaxdocklist runat="server" ID="adocklist" />
                                    </div>
							    </div>
						    </div>
						    </td>
						    <td><p class="zi1">航程：</p></td>
						    <td>
						        <p class="zi2"><dyj:TextBox runat="server" ID="routerange" RequiredFieldType="数据校验" MaxLength="5" Width="100"></dyj:TextBox></p>
						    </td>
					    </tr>
                        <tr>
						    <td><p class="zi1">截关：</p></td>
						    <td>
                            <div class="zi2 popxg" style="z-index:145">
							    <p class="ip1" style="width:100px" id="weekstart_str"><%=rbinfo.schbegin%></p>
                                <input type="hidden" id="weekstart_value" name="weekstart_value" value="<%=rbinfo.schbegin%>" />
							    <span class="an"></span>
							    <div class="cn" style="width:280px;" id="weekstart_div">
                                    <div id="weekstart">
								    <table border="0" cellpadding="0" cellspacing="0" class="edtb2">
                                        <tbody>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周一','weekstart','周一')">
                                            <td>周一</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周二','weekstart','周二')">
                                            <td>周二</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周三','weekstart','周三')">
                                            <td>周三</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周四','weekstart','周四')">
                                            <td>周四</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周五','weekstart','周五')">
                                            <td>周五</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周六','weekstart','周六')">
                                            <td>周六</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周日','weekstart','周日')">
                                            <td>周日</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    </div>
							    </div>
						    </div>
						    </td>
						    <td><p class="zi1">开船：</p></td>
						    <td>
						    <div class="zi2 popxg" style="z-index:144">
							    <p class="ip1" style="width:100px" id="weekend_str"><%=rbinfo.schend%></p>
                                <input type="hidden" id="weekend_value" name="weekend_value" value="<%=rbinfo.schend%>" />
							    <span class="an"></span>
							    <div class="cn" style="width:120px;" id="weekend_div">
                                    <div id="weekend">
								    <table border="0" cellpadding="0" cellspacing="0" class="edtb2">
                                        <tbody>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周一','weekend','周一')">
                                            <td>周一</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周二','weekend','周二')">
                                            <td>周二</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周三','weekend','周三')">
                                            <td>周三</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周四','weekend','周四')">
                                            <td>周四</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周五','weekend','周五')">
                                            <td>周五</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周六','weekend','周六')">
                                            <td>周六</td>
                                        </tr>
                                        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="redisplay('周日','weekend','周日')">
                                            <td>周日</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    </div>
							    </div>
						    </div>
						    </td>
					    </tr>
                        <tr>						
						    <td><p class="zi1">有效期：</p></td>
						    <td colspan="3">
                                <p class="zi2">
                                <dyj:Calendar id="starttime" runat="server" ReadOnly="true" ScriptPath="../js/calendar.js"></dyj:Calendar>
                                至
			                    <dyj:Calendar id="endtime" runat="server" ReadOnly="true" ScriptPath="../js/calendar.js"></dyj:Calendar>
                                </p>
                            </td>
                        </tr>
                    </tbody>
			    </table>
		    </div>
		    <div class="con">
                <table border="0" cellpadding="0" cellspacing="0" class="edtb">
                    <thead>
                        <tr>
                            <td>20GP</td><td>40GP</td><td>40HQ</td>
                        </tr>
                    </thead>
				    <tbody>
					    <tr>
                            <td><dyj:TextBox runat="server" ID="_20GPprice" RequiredFieldType="数据校验" MaxLength="10" Width="100" CanBeNull="必填"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="_40GPprice" RequiredFieldType="数据校验" MaxLength="10" Width="100" CanBeNull="必填"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="_40HQprice" RequiredFieldType="数据校验" MaxLength="10" Width="100" CanBeNull="必填"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan="3"><input type="checkbox" name="alonecheck" value="1" <%if(rbinfo.isconfim==1){%>checked="true"<%}%>/>单票确认</td>
                        </tr>
                    </tbody>
                </table>
            </div>
		    <div class="con">
                <table border="0" cellpadding="0" cellspacing="0" class="edtb">
                    <thead>
                        <tr>
                            <td width="10%">类别</td><td>20GP</td><td>40GP</td><td>40HQ</td>
                        </tr>
                    </thead>
				    <tbody>
					    <tr>
                            <td>AMS/ENS</td>
                            <td colspan="3"><dyj:TextBox runat="server" ID="USD_AMS_ENS" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>BAF</td>
                            <td><dyj:TextBox runat="server" ID="USD_BAF_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_BAF_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_BAF_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>CAF</td>
                            <td><dyj:TextBox runat="server" ID="USD_CAF_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_CAF_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_CAF_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>OTHER/其他</td>
                            <td><dyj:TextBox runat="server" ID="USD_OTHER_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_OTHER_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_OTHER_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>PSS</td>
                            <td><dyj:TextBox runat="server" ID="USD_PSS_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_PSS_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_PSS_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>EBS</td>
                            <td><dyj:TextBox runat="server" ID="USD_EBS_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_EBS_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_EBS_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>CIC</td>
                            <td><dyj:TextBox runat="server" ID="USD_CIC_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_CIC_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_CIC_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>YAS</td>
                            <td><dyj:TextBox runat="server" ID="USD_YAS_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_YAS_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="USD_YAS_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                    </tbody>
                </table>
            </div>
		    <div class="con">
                <table border="0" cellpadding="0" cellspacing="0" class="edtb">
                    <thead>
                        <tr>
                            <td width="10%">类别</td><td>20GP</td><td>40GP</td><td>40HQ</td>
                        </tr>
                    </thead>
				    <tbody>
					    <tr>
                            <td>CIC</td>
                            <td><dyj:TextBox runat="server" ID="RMB_CIC_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_CIC_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_CIC_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>文件费</td>
                            <td colspan="3"><dyj:TextBox runat="server" ID="RMB_DOC" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>EBS</td>
                            <td><dyj:TextBox runat="server" ID="RMB_EBS_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_EBS_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_EBS_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>ECR</td>
                            <td><dyj:TextBox runat="server" ID="RMB_ECR_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_ECR_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_ECR_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>THC</td>
                            <td><dyj:TextBox runat="server" ID="RMB_THC_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_THC_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_THC_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>箱单</td>
                            <td colspan="3"><dyj:TextBox runat="server" ID="RMB_XSF" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>订舱费</td>
                            <td><dyj:TextBox runat="server" ID="RMB_DCF_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_DCF_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_DCF_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                        <tr>
                            <td>铅封费</td>
                            <td><dyj:TextBox runat="server" ID="RMB_QFF_20GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_QFF_40GP" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                            <td><dyj:TextBox runat="server" ID="RMB_QFF_40HQ" RequiredFieldType="数据校验" MaxLength="10" Width="100"></dyj:TextBox></td>
                        </tr>
                    </tbody>
                </table>
            </div>
		    <div class="con">
                <table border="0" cellpadding="0" cellspacing="0" class="edtb">
				    <tbody>
					    <tr>
                            <td><dyj:TextBox runat="server" ID="bio" MaxLength="200" Height="80" Width="400" TextMode="MultiLine"></dyj:TextBox></td>
                        </tr>
                    </tbody>
                </table>
            </div>
	    </div>
        <p class="insa"><dyj:Button runat="server" ID="editroute"/>&nbsp;&nbsp;<button class="MgButton" id="cancel" onclick="parent.Lightview.hide();"><img src="../images/del.gif"/>取 消</button></p>
    </div>
    <input type="hidden" id="ajaxroutecode" value="" />
    </form>
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        choose("popxg");
        jQuery("#tab").Exchange({ MIDS: "tabt", CIDS: "tabnr", timer: 0, count: 4, haveall: 0 });
        
        <% if(rbinfo.routeid > 0){%>setseasurerush('<%=rbinfo.routebcode%>');setportrush('<%=rbinfo.routetcode%>');<%}%>
    });

    function setseasurerush(rvalue) {
        AjaxHelper.Updater('ajaxselfroutelinelist_list.ascx', 'ajaxcorproutedatalist', 'routestr=' + rvalue);
        setportrush('');
    }

    function setportrush(rvalue) {
        document.getElementById('ajaxroutecode').value = rvalue;
        AjaxHelper.Updater('ajaxcorpportlist_list.ascx', 'ajaxcorpportdatalist', 'routestr=' + rvalue);
    }
</script>
</html>